﻿@model LeEdu.MODEL.Topicshi

@{
    ViewBag.Title = "SreachTopic";
    Layout = "~/Views/Shared/_Index.cshtml";
}

<div id="content-container" class="container">
    <div class="group-header">
        <div class="group-header-inner" style="background: url(http://localhost:5130/Img/@(Model.GROUPS.GBACKGROUND)); background-repeat: no-repeat; background-size: 100% 100%;">
            <div class="media">
                <div class="media-left">
                    <a href="/Group/GroupHomepage/@Model.GroupID">
                        <img src="http://localhost:5130/Img/@((Model.GROUPS).GLOGO)" alt="@((Model.GROUPS).GNAME)" class="avatar-square-sm">
                    </a>
                </div>
                <div class="media-body">
                    <h2 class="media-heading">@((Model.GROUPS).GNAME)</h2>
                    <div class="media-metas">
                        @((Model.GROUPS).UserAndGroup.Count) 个成员
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-8 group-main">
            <style>
                .ke-icon-accessory {
                    background-image: url('/assets/img/default/iconfont-accessory.png');
                    background-position: center;
                    width: 16px;
                    height: 16px;
                }

                .ke-icon-accessory-red {
                    background-image: url('/assets/img/default/iconfont-accessory-red.png');
                    background-position: center;
                    width: 16px;
                    height: 16px;
                }
            </style>

            <div class="panel panel-default group-thread">
                <div class="panel-heading">
                    <ol class="breadcrumb">
                        <li><a href="/Group/GroupAll">小组频道</a></li>
                        <li><a href="/Group/GroupHomepage/@Model.GroupID">@((Model.GROUPS).GNAME)</a></li>
                        <li class="active">@Model.TTITLE</li>
                    </ol>
                    <h2>
                        @Model.TTITLE
                        @if(Model.TATTRIBUTE!=null&&Model.TATTRIBUTE.Contains("加精"))
                        {
                            <span class="label label-warning">精</span>
                        }
                        @if (Model.TATTRIBUTE != null&&Model.TATTRIBUTE.Contains("置顶"))
                        {
                            <span class="label label-danger">置顶</span>
                        }

                    </h2>
                    <div class="actions thread-list" id="thread-list">
                    </div>
                    <div class="metas clearfix">
                        <div class="es-share dropdown pull-right">
                            <span class="es-share top" style="font-size:14px;">
                                <a href="javascript:;" class="text-muted" data-toggle="dropdown"><span class="glyphicon glyphicon-share"></span> 分享到</a>

                                @*<div class="dropdown-menu  js-social-share-params" data-title="213213" data-summary="21321312" data-message="我正在「aaaa」小组，看到「213213」，很不错哦，一起来看看吧！" data-url="http://www.zhishile.com/group/4/thread/8" data-picture="">
                                        <a href="javascript:;" class="js-social-share" data-cmd="weixin" title="分享到微信" data-share="weixin" data-qrcode-url="/common/qrcode?text=http%3A%2F%2Fwww.zhishile.com%2Fgroup%2F4%2Fthread%2F8"><i class="es-icon es-icon-weixin"></i></a>
                                        <a href="javascript:;" class="js-social-share" data-cmd="tsina" title="分享到新浪微博" data-share="weibo"><i class="es-icon es-icon-weibo"></i></a>
                                        <a href="javascript:;" class="js-social-share" data-cmd="qq" title="分享到QQ好友" data-share="qq"><i class="es-icon es-icon-qq"></i></a>
                                        <a href="javascript:;" class="js-social-share" data-cmd="qzone" title="分享到QQ空间" data-share="qzone"><i class="es-icon es-icon-qzone"></i></a>
                                    </div>*@

                            </span>
                        </div>
                        发表于 @((DateTime.Now-Model.TSTARTTIME).Hours) 小时前
                        <span class="divider">•</span>
                        <span>2 次查看</span>

                    </div>
                </div>

                <div class="panel-body" id="post-action">
                    <p>@Html.Raw(Model.TNAME)</p>
                    <div class="mtl">
                        <a class="btn btn-link" href="#"><span class="glyphicon glyphicon-filter"></span> 只看楼主回复</a>

                        <a type="button" class="btn btn-link " href="#"><span class="glyphicon glyphicon-sort"></span> 倒序查看回复</a>
                      
                        @if(Session["User"] !=null)
                        {
                            if ((Session["User"] as LeEdu.MODEL.UserInfo).RoleId == 0)
                            {                               
                            
                        <a class="btn btn-link" href="#"><span class="glyphicon glyphicon-edit"></span> 编辑</a>

                        <a id="elite" title="加精" class="btn btn-link" href="#" data-url="/group/thread/8/setElite"><span class="glyphicon glyphicon-thumbs-up"></span> 加精</a>

                        <a id="stick" title="置顶" class="btn btn-link" href="#" data-url="/group/thread/8/setStick"><span class="glyphicon glyphicon-circle-arrow-up"></span>  置顶</a>
                        }
                        }
                        @foreach (var j in Model.Reply)
                        { 
                          <p>话题回复内容： @j.RCONTNET</p><br /><br />
                        }
                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">发表回复</div>
                <div class="panel-body">
                    <form data-widget-cid="widget-0" novalidate="novalidate" id="post-thread-form" class="post-thread-form thread-form" method="post" action="/group/addhuahui" post-url="/group/addhuahui/4/8/post">
                        <div class="form-group">
                            <input type="hidden" value="@Model.ID" name="TopicshiID" id="TopicshiID" />
                            <label class="control-label hide" for="post_content">回复内容</label>
                            <div class="controls">

                                <textarea name="RCONTNET" rows="10" id="group" class="form-control" data-image-upload-url="#"></textarea>
                                @*<div>
                        <textarea data-explain="" data-widget-cid="widget-1" style="visibility: hidden; display: none;" name="content" value="" rows="10" id="post_content" class="form-control" data-image-upload-url="/editor/upload?token=NHxkZWZhdWx0fGltYWdlfDE0NTA2MzM1NTh8NWJmNzA2ODE0ZTQxNmYzMjcxYzEwZTI2NDk0NDUxMTk" data-image-download-url="/editor/download?token=NHxkZWZhdWx0fGltYWdlfDE0NTA2MzM1NTh8NWJmNzA2ODE0ZTQxNmYzMjcxYzEwZTI2NDk0NDUxMTk"></textarea><div id="cke_post_content" class="cke_1 cke cke_reset cke_chrome cke_editor_post_content cke_ltr cke_browser_gecko" dir="ltr" role="application" lang="zh-cn"><div class="cke_inner cke_reset" role="presentation"><span id="cke_1_top" class="cke_top cke_reset_all" role="presentation" style="height: auto; -moz-user-select: none;"><span id="cke_8" class="cke_voice_label">工具栏</span><span id="cke_1_toolbox" class="cke_toolbox" role="group" aria-labelledby="cke_8" onmousedown="return false;"><span id="cke_9" class="cke_toolbar" role="toolbar"><span class="cke_toolbar_start"></span><span class="cke_toolgroup" role="presentation"><a id="cke_10" class="cke_button cke_button__bold  cke_button_off" title="加粗" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_10_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(1,event);" onfocus="return CKEDITOR.tools.callFunction(2,event);" onclick="CKEDITOR.tools.callFunction(3,this);return false;"><span class="cke_button_icon cke_button__bold_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -24px;background-size:auto;">&nbsp;</span><span id="cke_10_label" class="cke_button_label cke_button__bold_label" aria-hidden="false">加粗</span></a><a id="cke_11" class="cke_button cke_button__italic  cke_button_off" title="倾斜" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_11_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(4,event);" onfocus="return CKEDITOR.tools.callFunction(5,event);" onclick="CKEDITOR.tools.callFunction(6,this);return false;"><span class="cke_button_icon cke_button__italic_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -48px;background-size:auto;">&nbsp;</span><span id="cke_11_label" class="cke_button_label cke_button__italic_label" aria-hidden="false">倾斜</span></a><a id="cke_12" class="cke_button cke_button__underline  cke_button_off" title="下划线" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_12_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(7,event);" onfocus="return CKEDITOR.tools.callFunction(8,event);" onclick="CKEDITOR.tools.callFunction(9,this);return false;"><span class="cke_button_icon cke_button__underline_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -144px;background-size:auto;">&nbsp;</span><span id="cke_12_label" class="cke_button_label cke_button__underline_label" aria-hidden="false">下划线</span></a><a id="cke_13" class="cke_button cke_button__textcolor cke_button_off " title="文本颜色" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_13_label" aria-haspopup="true" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(10,event);" onfocus="return CKEDITOR.tools.callFunction(11,event);" onclick="CKEDITOR.tools.callFunction(12,this);return false;"><span class="cke_button_icon cke_button__textcolor_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -432px;background-size:auto;">&nbsp;</span><span id="cke_13_label" class="cke_button_label cke_button__textcolor_label" aria-hidden="false">文本颜色</span><span class="cke_button_arrow"></span></a><span class="cke_toolbar_separator" role="separator"></span><a id="cke_14" class="cke_button cke_button__removeformat  cke_button_off" title="清除格式" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_14_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(13,event);" onfocus="return CKEDITOR.tools.callFunction(14,event);" onclick="CKEDITOR.tools.callFunction(15,this);return false;"><span class="cke_button_icon cke_button__removeformat_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1728px;background-size:auto;">&nbsp;</span><span id="cke_14_label" class="cke_button_label cke_button__removeformat_label" aria-hidden="false">清除格式</span></a><a id="cke_15" class="cke_button cke_button__pastetext  cke_button_off" title="粘贴为无格式文本" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_15_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(16,event);" onfocus="return CKEDITOR.tools.callFunction(17,event);" onclick="CKEDITOR.tools.callFunction(18,this);return false;"><span class="cke_button_icon cke_button__pastetext_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1608px;background-size:auto;">&nbsp;</span><span id="cke_15_label" class="cke_button_label cke_button__pastetext_label" aria-hidden="false">粘贴为无格式文本</span></a><span class="cke_toolbar_separator" role="separator"></span><a id="cke_16" class="cke_button cke_button__smiley  cke_button_off" title="表情符" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_16_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(19,event);" onfocus="return CKEDITOR.tools.callFunction(20,event);" onclick="CKEDITOR.tools.callFunction(21,this);return false;"><span class="cke_button_icon cke_button__smiley_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1848px;background-size:auto;">&nbsp;</span><span id="cke_16_label" class="cke_button_label cke_button__smiley_label" aria-hidden="false">表情符</span></a><a id="cke_17" class="cke_button cke_button__numberedlist  cke_button_off" title="编号列表" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_17_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(22,event);" onfocus="return CKEDITOR.tools.callFunction(23,event);" onclick="CKEDITOR.tools.callFunction(24,this);return false;"><span class="cke_button_icon cke_button__numberedlist_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1368px;background-size:auto;">&nbsp;</span><span id="cke_17_label" class="cke_button_label cke_button__numberedlist_label" aria-hidden="false">编号列表</span></a><a id="cke_18" class="cke_button cke_button__bulletedlist  cke_button_off" title="项目列表" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_18_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(25,event);" onfocus="return CKEDITOR.tools.callFunction(26,event);" onclick="CKEDITOR.tools.callFunction(27,this);return false;"><span class="cke_button_icon cke_button__bulletedlist_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1320px;background-size:auto;">&nbsp;</span><span id="cke_18_label" class="cke_button_label cke_button__bulletedlist_label" aria-hidden="false">项目列表</span></a><span class="cke_toolbar_separator" role="separator"></span><a id="cke_19" class="cke_button cke_button__link  cke_button_off" title="插入/编辑超链接" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_19_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(28,event);" onfocus="return CKEDITOR.tools.callFunction(29,event);" onclick="CKEDITOR.tools.callFunction(30,this);return false;"><span class="cke_button_icon cke_button__link_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1248px;background-size:auto;">&nbsp;</span><span id="cke_19_label" class="cke_button_label cke_button__link_label" aria-hidden="false">插入/编辑超链接</span></a><a id="cke_20" class="cke_button cke_button__unlink cke_button_disabled " title="取消超链接" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_20_label" aria-haspopup="false" aria-disabled="true" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(31,event);" onfocus="return CKEDITOR.tools.callFunction(32,event);" onclick="CKEDITOR.tools.callFunction(33,this);return false;"><span class="cke_button_icon cke_button__unlink_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1272px;background-size:auto;">&nbsp;</span><span id="cke_20_label" class="cke_button_label cke_button__unlink_label" aria-hidden="false">取消超链接</span></a><a id="cke_21" class="cke_button cke_button__image  cke_button_off" title="图像" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_21_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(34,event);" onfocus="return CKEDITOR.tools.callFunction(35,event);" onclick="CKEDITOR.tools.callFunction(36,this);return false;"><span class="cke_button_icon cke_button__image_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -960px;background-size:auto;">&nbsp;</span><span id="cke_21_label" class="cke_button_label cke_button__image_label" aria-hidden="false">图像</span></a><span class="cke_toolbar_separator" role="separator"></span><a id="cke_22" class="cke_button cke_button__source  cke_button_off" title="源码" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_22_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(37,event);" onfocus="return CKEDITOR.tools.callFunction(38,event);" onclick="CKEDITOR.tools.callFunction(39,this);return false;"><span class="cke_button_icon cke_button__source_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1896px;background-size:auto;">&nbsp;</span><span id="cke_22_label" class="cke_button_label cke_button__source_label" aria-hidden="false">源码</span></a><a id="cke_23" class="cke_button cke_button__kityformula  cke_button_off" title="公式编辑器" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_23_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(40,event);" onfocus="return CKEDITOR.tools.callFunction(41,event);" onclick="CKEDITOR.tools.callFunction(42,this);return false;"><span class="cke_button_icon cke_button__kityformula_icon" style="background-image:url(http://www.zhishile.com/assets/libs/ckeditor/4.6.7/plugins/kityformula/icons/kityformula.png?t=F0UE);background-position:0 undefinedpx;background-size:16px;">&nbsp;</span><span id="cke_23_label" class="cke_button_label cke_button__kityformula_label" aria-hidden="false">公式编辑器</span></a></span><span class="cke_toolbar_end"></span></span></span></span><div style="height: 200px;" id="cke_1_contents" class="cke_contents cke_reset" role="presentation"><iframe allowtransparency="true" tabindex="0" class="cke_wysiwyg_frame cke_reset" style="width: 100%; height: 100%;" src="" frameborder="0"></iframe></div></div></div>
                        <div class="help-block" style="display:none;"></div>
                    </div>*@
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <button id="post-thread-btn" data-submiting-text="正在回复" type="submit" class="post-thread-btn btn btn-primary pull-right">发表</button>
                            </div>
                        </div>
                        <input name="_csrf_token" value="ee4c4ed61595b0a2544546e82f64ee455bfa1ffb" type="hidden">
                    </form>

                </div>
            </div>
            <div class="modal fade" id="uploadModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                            <h4 class="modal-title" id="myModalLabel">上传附件</h4>
                        </div>
                        <div class="modal-body">
                            <button class="btn btn-default btn-sm upload-img" style="height:33px;" type="button" data-url="/group/thread/upload?group=user">上传</button>
                            <span> (大小不能超过<span style="color:red;">2</span>MB，文件类型支持png ,jpg ,gif ,doc ,xls ,txt ,rar ,zip .)</span>
                            <table id="block-table" class="table table-striped table-condensed mtl">
                                <tbody>
                                    <tr>
                                        <th width="60%">文件名</th>
                                        <th>描述</th>
                                        <th>乐币</th>
                                        <th>操作</th>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="modal-footer">
                            <div class="pull-left text-muted">
                                用户下载附件扣除的乐币会在扣除50%之后添加到您的账户
                            </div>
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" id="sure">确定</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-4 group-side">
            <div class="panel panel-default">
                <div class="panel-heading">话题作者</div>
                <div class="panel-body">
                    <div class="media">
                        <a class="pull-left" href="#">
                            <img src="http://localhost:5130/Img/@((Model.Users).Avatar)" class="avatar-md">
                        </a>
                        <div class="media-body">
                            <div class="metas mbm">
                                <strong>
                                    <a class="link-light " href="#">@((Model.Users).Uname)</a>
                                </strong>
                            </div>
                            <div class="content"> <span class="text-muted">头衔:</span>@((Model.Users).Post)</div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading">活跃成员</div>
                <div class="panel-body">
                    <ul class="user-grids">
                        <li style="width:22%;">
                            <a class="user-link user-avatar-link pull-left media-object media-object-small  js-user-card" href="/user/4" data-card-url="/user/4/card/show" data-user-id="4">
                                <img class="avatar-sm" src="/files/default/2015/12-02/140812c46fe0111701.jpg?6.9.6">
                            </a>

                            <p>
                                <a class="link-light link-muted" href="#">Xifire</a>

                            </p>
                        </li>
                    </ul>
                    <br>
                </div>
            </div>
        </div>
    </div>

</div>
